package com.gome.ocean.service.authority;

import com.gome.ocean.common.exception.AuthorityManagerException;
import com.gome.ocean.dao.model.authority.BaseOnProjectEntity;
import com.gome.ocean.dao.model.authority.User;
import com.gome.ocean.dao.model.reqres.AccessRequest;
import com.gome.ocean.dao.model.reqres.AccessResponse;

/**
 * Created by liuqingxia on 2016/6/2.
 */
public interface AuthorityManager {

    public AccessResponse permitAccess(AccessRequest request);

    public AccessResponse permitAccess(User user, BaseOnProjectEntity entity) throws AuthorityManagerException;

}
